project(
	'display-settings',
	'cpp',
	'c',
	version: '0.2.0',
	license: 'MIT',
	meson_version: '>=0.59.0',
	default_options: [
		'cpp_std=c++17',
		'c_std=c11',
		'warning_level=2',
		'werror=false',
	],
)

add_project_arguments( '-fPIC', language: ['cpp', 'c'])

dependency( 'pkg-config', required : true )
Qt5 = import( 'qt5')

Qt5Core = dependency( 'Qt5Core', required : true )
Qt5Widgets = dependency( 'Qt5Widgets', required : true )
Qt5Network = dependency( 'Qt5Network', required : true )
wlrootsqt = dependency( 'wayqt', required : true )
wayland_client = dependency( 'wayland-client', required : true )

Headers = [
	'DisplaySettings.hpp',
]

Sources = [
	'Main.cpp',
	'DisplaySettings.cpp',
]

Mocs = Qt5.compile_moc(
 	headers : [ Headers ],
 	dependencies: [Qt5Core, Qt5Widgets],
)

display = executable(
    'display-settings', [ Sources, Mocs ],
 	dependencies: [Qt5Core, Qt5Network, Qt5Widgets, wlrootsqt, wayland_client],
    install: false,
)
